//
//  UIView+HDWaiterView.m
//  app
//
//  Created by D on 15/7/15.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "HDWaiterView.h"

@implementation HDWaiterView

-(id)initToFrame
{
    if (self = [super init]) {
        
        self.frame = CGRectMake(0, 0, UBO_WINDOW.width, 44);
        self.userInteractionEnabled = YES;
        self.backgroundColor = [UIColor clearColor];
        
        self.mianView = [[UIView alloc]initWithFrame:CGRectOf([self.ubo fx:UB_1_2 ox:-UBO_WINDOW.width/2 fy:UB_1_2 oy:-22], [self.ubo ow:UBO_WINDOW.width oh:44])];
        self.mianView.backgroundColor = [UIColor clearColor];
        self.mianView.userInteractionEnabled = YES;
        [self addSubview:self.mianView];
        
        self.waitername = [[UILabel alloc]initWithFrame:CGRectOf([self.mianView.ufo fx:UB_1_2 ox:-(UBO_WINDOW.width-24)/2 fy:UB_1_2 oy:-22], [self.ubo ow:UBO_WINDOW.width-24 oh:44])];
        [self.waitername setTextColor:[UIColor colorWithRed:136.0f/255.0f green:136.0f/255.0f blue:136.0f/255.0f alpha:1]];
        [self.waitername setFont:JKAppGlobleFontMinTagText];
        self.waitername.text = @"工作日8:30-17:30 可咨询电话客服:010-84243681";
        [self.waitername setTextAlignment:NSTextAlignmentCenter];
        [self addSubview:self.waitername];
        
        UIButton * btn = [[UIButton alloc]initWithFrame:CGRectOf([self.ubo fx:UB_1_2 ox:-UBO_WINDOW.width/2 fy:UB_1_2 oy:-22], [self.ubo ow:UBO_WINDOW.width oh:44])];
        [btn addTarget:self action:@selector(jumpAbout) forControlEvents:UIControlEventTouchUpInside];
        btn.backgroundColor = [UIColor clearColor];
//        [self addSubview:btn];

        
    }
    return self;
}




@end
